%%-*- mode: erlang -*-
%% emq_sn config mapping
{mapping, "mqtt.sn.port", "emq_sn.listener", [
  {default, 1884},
  {datatype, integer}
]}.

{mapping, "mqtt.sn.advertise_duration", "emq_sn.advertise_duration", [
  {default, 900},
  {datatype, integer}
]}.

{mapping, "mqtt.sn.gateway_id", "emq_sn.gateway_id", [
  {default, 1},
  {datatype, integer}
]}.

{translation, "emq_sn.listener", fun(Conf) ->
  Port = cuttlefish:conf_get("mqtt.sn.port", Conf), {Port, []}
end}.
